<%--
  Created by IntelliJ IDEA.
  User: lucky
  Date: 2020/12/21
  Time: 11:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>主界面</title>
</head>
<body>
<h1>welcome，${sessionScope.user.username}</h1>
<span>${sessionScope.user}</span>
<dl>
    <c:forEach items="${sessionScope.user.permissions}" var="permission">
        <c:if test="${permission.pid == 0}">
            <dt>${permission.permissionName}</dt>
        </c:if>
        <c:if test="${permission.pid != 0}">
            <dd><a href="${permission.moduleUrl}">${permission.permissionName}</a></dd>
        </c:if>
    </c:forEach>
</dl>
</body>
</html>
